how to calculate production capacity formula